package com.sikaryofficial.backend.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 产品统计对象 product_statistics_t
 * 
 * @author qinjinyuan
 * @date 2024-03-12
 */
@Getter
@Setter
@ToString
@TableName("product_statistics_t")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class ProductStatistics implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 产品统计ID */
    @TableId(type = IdType.ASSIGN_ID)
    private Long productStatisticsId;

    /** 品牌口味ID */
    private Long brandTasteId;

    /** 扫码获取100积分-统计次数 */
    private Long scanCount;

    /** 所有扫码次数 */
    private Long normalScanCount;

    /** 租户号 */
    private Integer tenantId;

    /** 乐观锁 */
    private Integer revision;

    /** 创建人 */
    private Long createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    private Long updatedBy;

    /** 更新时间 */
    private Date updatedTime;

    /** 删除版本：默认为0；删除则赋值当前记录主键ID */
    private String deletedVersion;
}
